Count the number of digits in C Language program